import Vue from 'vue'
import VueRouter from 'vue-router'
import Discovery from '@/views/1.discovery'
import Recommend from '@/views/2.recommend'
import New from '@/views/3.new'
import Mv from '@/views/4.MV'
import Result from '@/views/5.result'
import Welcome from '@/views/0.Welcome'
import Playlist from '@/views/6.playlist'
import Mvpage from '@/views/7.mvpage'

Vue.use(VueRouter)

const routes = [
{
  path: '/',
  name: 'welcome',
  component: Welcome
},
{
  path: '/discovery',
  name: 'discovery',
  component: Discovery
},
{
  path: '/recommend',
  name: 'recommend',
  component: Recommend
},
{
  path: '/new',
  name: 'new',
  component: New
},
{
  path: '/mv',
  name: 'mv',
  component: Mv
},
{
  path: '/result',
  name: 'result',
  component: Result
},
{
  path: '/playlist',
  name: 'playlist',
  component: Playlist
},
{
  path: '/mvpage',
  name: 'mvpage',
  component: Mvpage
},
]

const router = new VueRouter({
  routes
})

export default router
